<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="zh">
 <head>
  <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
  <meta content="2018-10-23T06:18:10.521000000" name="created"/>
  <meta content="2023-12-12T09:31:21" name="changed" translator="gocpicnic"/>
  <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
  <meta content="zh" http-equiv="Content-Language"/>
  <title>
   <!-- Tutorial: Testing your circuit -->
   教程：测试你的电路
  </title>
  <link href="../../style.css" rel="stylesheet" type="text/css"/>
 </head>
 <body>
  <div class="maindiv">
   <p>
    <!-- <b>Previous:</b><a href="tutor-text.html">Step 3: Adding text</a> -->
    <b>
     上一步:
    </b>
    <a href="tutor-text.html">
     第3步：添加文本
    </a>
   </p>
   <h2>
    <!-- Step 4: Testing your circuit -->
    第4步：测试你的电路
   </h2>
   <p>
    <!-- Our final step is to test our circuit to ensure that it really does what we intended. Logisim is already simulating the circuit. Let's look again at where we were. -->
    我们的最后一步是测试我们的电路，以确保它确实达到我们的预期。 Logisim-evolution已经在模拟电路。 让我们再看看我们在哪里。
   </p>
   <p align="center">
    <img alt="#########" src="../../../img-guide/tutorial-7-all2.png"/>
   </p>
   <p>
    <!-- Note that the input pins both contain 0s; and so does the output pin. This already tells us that the circuit already computes a 0 when both inputs are 0. -->
    请注意，输入引脚均包含 0； 输出引脚也是如此。 这已经告诉我们，当两个输入均为 0 时，电路已经计算出 0。
   </p>
   <p>
    <!-- Now to try another combination of inputs. Select the <b class=propertie>"Poke"</b> tool (<img class="icontxt" src="../../../../icons/1616/toolpoke.png" alt="#########">) and start poking the inputs by clicking on them. Each time you poke an input, its value will toggle. For example, we might first poke the bottom input (<var>y</var>). -->
    现在尝试另一种输入组合。选择
    <b class="propertie">
     "Poke"
    </b>
    工具 (
    <img alt="#########" class="icontxt" src="../../../../icons/1616/toolpoke.png"/>
    )，并通过单击输入来开始戳输入。 每次您点击输入时，其值都会切换。 例如，我们可能首先点击底部输入
   </p>
   <p align="center">
    <img alt="#########" src="../../../img-guide/tutorial-8-test.png"/>
   </p>
   <p>
    <!-- When you change the input value, Logisim will show you what values travel down the wires by drawing them light green to indicate a 1 value or dark green (almost black) to indicate a 0 value. You can also see that the output value has changed to 1. -->
    当您更改输入值时，Logisim-evolution 将通过将它们绘制为浅绿色表示1值或深绿色（几乎黑色）表示 0 值来显示哪些值沿着导线传输。 您还可以看到输出值已更改为 1。
   </p>
   <p>
    <!-- So far, we have tested the first two rows of our truth table, and the outputs (0 and 1) match the desired outputs. -->
    到目前为止，我们已经测试了真值表的前两行，并且输出（0 和 1）与所需的输出匹配。
   </p>
   <center>
    <table class="truthtable">
     <tbody>
      <tr>
       <th class="tspace">
        x
       </th>
       <th class="tspace">
        y
       </th>
       <th class="tspace">
        x XOR y
       </th>
      </tr>
      <tr>
       <td class="zerov">
        0
       </td>
       <td class="zerov">
        0
       </td>
       <td class="zerov">
        0
       </td>
      </tr>
      <tr>
       <td class="unov">
        1
       </td>
       <td class="zerov">
        0
       </td>
       <td class="unov">
        1
       </td>
      </tr>
      <tr>
       <td class="zerov">
        0
       </td>
       <td class="unov">
        1
       </td>
       <td class="unov">
        1
       </td>
      </tr>
      <tr>
       <td class="unov">
        1
       </td>
       <td class="unov">
        1
       </td>
       <td class="zerov">
        0
       </td>
      </tr>
     </tbody>
    </table>
   </center>
   <p>
    <!-- By poking the switches through different combinations, we can verify the other two rows. If they all match, then we're done: The circuit works! -->
    通过拨动不同组合的开关，我们可以验证其他两行。 如果它们全部匹配，那么我们就完成了：电路工作了！
   </p>
   <p>
    <!-- To archive your completed work, you might want to save or print your circuit. The <b class=menu>|&nbsp;File&nbsp;|</b> menu allows this, and of course it also allows you to exit Logisim. But why quit now ? -->
    要存档已完成的工作，您可能需要保存或打印电路。
    <b class="menu">
     | File |
    </b>
    菜单允许执行此操作，当然它也允许您退出 Logisim-evolution。
   </p>
   <p>
    <!-- <b>Next:</b> <a href="tutor-step.html">Step 5: The step by step mode</a> -->
    <b>
     下一步:
    </b>
    <a href="tutor-step.html">
     第5步：单步模式
    </a>
   </p>
   <p>
   </p>
   <p>
   </p>
   <p>
   </p>
  </div>
 </body>
</html>
